package org.jaaksi.view.filterbar;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import org.jaaksi.view.filterbar.bean.FilterIndexInfo;
import org.jaaksi.view.filterbar.util.ConstantUtils;
import org.jaaksi.view.filterbar.util.EventBusTool;

/**
 * Created by Fcy on 2015/11/2.
 */
public class FilterMoreActivity extends Activity
{
	private FilterIndexInfo.MoreIndexInfo moreIndexInfo;

	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.filter_more);

		moreIndexInfo = (FilterIndexInfo.MoreIndexInfo) getIntent()
		        .getSerializableExtra(ConstantUtils.INFO);

	}

	public void index(View view)
	{
		if (moreIndexInfo != null)
		{
			moreIndexInfo.saleState = 3;
			finish();
			EventBusTool.post(moreIndexInfo,
			        ConstantUtils.IEventTag.TAG_FILTER_MORE);
		}

	}

	@Override
	public void onDestroy()
	{
		super.onDestroy();
	}
}